package cn.zxcoder;

import cn.zxcoder.Tools.ToolUtil;
import lombok.SneakyThrows;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.concurrent.TimeUnit;

@SpringBootApplication
@EnableScheduling
public class ProjectApplication /*extends SpringBootServletInitializer */{

	/*@Override//为了打包springboot项目
	protected SpringApplicationBuilder configure(
			SpringApplicationBuilder builder) {
		return builder.sources(this.getClass());
	}*/
	public static void main(String[] args) {
		SpringApplication.run(ProjectApplication.class, args);
		System.out.println("又开始debug我的项目了，冲他妈的！！！！！");

		//添加数量
		ToolUtil.jedis.set("product:count", "0");
//		Thread thread = new Thread(new Runnable() {
//			@SneakyThrows
//			@Override
//			public void run() {
//				Thread.sleep();
//			}
//		});
	}




}
